function checkform(form) {
	title = form.tags.value;
	context = form.toppic.value;
	title = trim(title);
	context = trim(context);
	if(title==""){
		alert("标题为空");
	}else if(context==""){
		alert("内容为空");
	}else{
		return true;
	}
	return false;
}


//去左右空格;   
function trim(s){  
	return  s.replace(/(^\s*)|(\s*$)/, "");  
}   

function equal(s1,s2) {
	if(s1==s2){
		return true;
	}
	return false;
}